// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_REPAIR_ORDER_ITEM
// * CreateDate    : 2014-06-05 18:30:34
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:34
// * LastChanger   : 2014-06-05 18:30:34
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class RepRepairOrderItemTable : TableInfo
    {
		public const string C_TableName = "REP_REPAIR_ORDER_ITEM";
		
		public const string C_REP_ORDER_ITEM_ID = "REP_ORDER_ITEM_ID";
		public const string C_REP_ORDER_ID = "REP_ORDER_ID";
		public const string C_REP_APPLICATION_ITEM_ID = "REP_APPLICATION_ITEM_ID";
		public const string C_PRODUCT_CODE = "PRODUCT_CODE";
		public const string C_QTY = "QTY";
		public const string C_FINISHED_QTY = "FINISHED_QTY";
		public const string C_IMPORT_QTY = "IMPORT_QTY";
		public const string C_PLAN_FINISHED_DATE = "PLAN_FINISHED_DATE";
		public const string C_REPAIR_REASON = "REPAIR_REASON";
		public const string C_STATUS = "STATUS";
		
		public RepRepairOrderItemTable()
        {
            _tableName = "REP_REPAIR_ORDER_ITEM";
        }
		
		protected static RepRepairOrderItemTable _current;
        public static RepRepairOrderItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new RepRepairOrderItemTable();

            _current.Add(C_REP_ORDER_ITEM_ID, new ColumnInfo(C_REP_ORDER_ITEM_ID,"RepOrderItemId", true, typeof(string)));
            _current.Add(C_REP_ORDER_ID, new ColumnInfo(C_REP_ORDER_ID,"RepOrderId", false, typeof(string)));
            _current.Add(C_REP_APPLICATION_ITEM_ID, new ColumnInfo(C_REP_APPLICATION_ITEM_ID,"RepApplicationItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_CODE, new ColumnInfo(C_PRODUCT_CODE,"ProductCode", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_FINISHED_QTY, new ColumnInfo(C_FINISHED_QTY,"FinishedQty", false, typeof(decimal)));
            _current.Add(C_IMPORT_QTY, new ColumnInfo(C_IMPORT_QTY,"ImportQty", false, typeof(decimal)));
            _current.Add(C_PLAN_FINISHED_DATE, new ColumnInfo(C_PLAN_FINISHED_DATE,"PlanFinishedDate", false, typeof(DateTime)));
            _current.Add(C_REPAIR_REASON, new ColumnInfo(C_REPAIR_REASON,"RepairReason", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo REP_ORDER_ITEM_ID
        {
            get { return this[C_REP_ORDER_ITEM_ID]; }
        }
		
		public ColumnInfo REP_ORDER_ID
        {
            get { return this[C_REP_ORDER_ID]; }
        }
		
		public ColumnInfo REP_APPLICATION_ITEM_ID
        {
            get { return this[C_REP_APPLICATION_ITEM_ID]; }
        }
		
		public ColumnInfo PRODUCT_CODE
        {
            get { return this[C_PRODUCT_CODE]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo FINISHED_QTY
        {
            get { return this[C_FINISHED_QTY]; }
        }
		
		public ColumnInfo IMPORT_QTY
        {
            get { return this[C_IMPORT_QTY]; }
        }
		
		public ColumnInfo PLAN_FINISHED_DATE
        {
            get { return this[C_PLAN_FINISHED_DATE]; }
        }
		
		public ColumnInfo REPAIR_REASON
        {
            get { return this[C_REPAIR_REASON]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

